<!--
 * @Author: zhang gen yuan
 * @Date: 2021-05-17 10:58:17
 * @Descripttion: 
-->
<template>
  <div class="paging">
    <el-pagination
      background
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="current"
      :page-sizes="[10, 20, 30, 40, 50, 100]"
      :page-size="size"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
    >
    </el-pagination>
  </div>
</template>
<script>
export default {
  name: "paging",
  props:['total','size','current'],
  methods: {
    handleSizeChange(val) {
      this.$emit('handleSizeChange',val)
    },
    handleCurrentChange(val) {
      this.$emit('handleCurrentChange',val)
    },
  },
};
</script>
<style lang="scss" scoped>
.paging {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 20px 25px;
}
</style>